package com.brillilab.service.core.aliyun.impl;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.brillilab.domain.vo.message.AliPushVo;
import com.brillilab.service.core.aliyun.IAliYunPushService;
import com.brillilab.service.module.aliyun.AliYunPush;

@Service
public class AliYunPushServiceImpl implements IAliYunPushService{
	
	@Autowired
	private AliYunPush aliYunPush;
	
	@Override
	public void aliYunPush(AliPushVo aliPushVo) throws Exception {
		if (aliPushVo.getSendType() == 1) {
			aliYunPush.asyncPush(aliPushVo);
		} else {
			aliYunPush.syncPush(aliPushVo);
		}
	}
	
	
}
